1D Array ✔
danger
Solve 4, 5.1, 5.2, 6 in different days
danger
Solve 8, 9 in different days
- Find X
- Lower Bound
- Upper Bound
- Search Insert Position
- 03 April, 2026: 00.03.14 ✔
- For duplicates, use iteration even after finding correct answer
- If not found require valid index, use
left, even after iterating the array it not found, that means the answer isn, andleftbecomenafter increment. - If not require
-1index, then use helper variable.
- 03 April, 2026: 00.03.14 ✔
- Floor/Ceil
- 03 April, 2026: 00.01.55 ✔
- First and Last Occurences
- 03 April, 2026: 00.01.21 ✔
- Count Occurences
- Search in Rotated Sorted
- 03 April, 2026: 00.22.26 ❌
- Approach was right
- Assume only left array sorted, right array can also be sorted
- 03 April, 2026: 00.22.26 ❌
- Search in Roated Sorted II
- 03 April, 2026: 00.22.26 ❌
- Failed at edge case
- Handle the case when
left,mid,rightare equal
- Handle the case when
- Failed at edge case
- 03 April, 2026: 00.22.26 ❌
- Minimum in Rotated Sorted Array
- 03 April, 2026: 00.17.47 ❌
- Approach was right
- Keep repeating same mistake
- Use
left/right = mid +/- 1whenmidis not in the answer, but useleft/right = midwhenmidis in the answer - When you are already pointing
left/right=mid, no need to checkleft==rightas it could be fail ifleft==right==mid
- Approach was right
- 03 April, 2026: 00.17.47 ❌
- Count rotation
- Signle Element
- 03 April, 2026: 00.15.45 ❌
- approach was right
- implement the even, odd approach what you exactly thinking, compare mid, before mid, after mid
- approach was right
- 03 April, 2026: 00.15.45 ❌
- Find Peak Element
- 03 April, 2026: 00.44.51 ❌
- Failed at impmentation
- Find out which slope you are in
- if you're on an increasing slope, a peak must exist on the right side, becasuse if it's keep increasing eventually it fails as after the last item, its count
-1 - if you're on an decreasing slope, a peak must exist on left side and so on
- Failed at impmentation
- 03 April, 2026: 00.44.51 ❌